import React from 'react'
import {BrowserRouter as Router, Route} from 'react-router-dom'
import Login from './Login'
import AdminIndex from './AdminIndex'
import 'antd/dist/antd.css';

export default function Main(props) {
    return (
        <Router>
            <Route exact path="/" component={Login}></Route>
            <Route path="/index/" component={AdminIndex}></Route>
        </Router>
    )
}
